import { request } from '@/network/request'

export function sectionlist (currentPage) {
    return request({
        url: '/forum/category/list',
        method: 'post',
        params:{ currentPage}
    })
};
export function sectionview(id) {
    return request({
        url: '/forum/category/view',
        method: 'post',
        params: {id}
    })
};
export const savesection = data => {
    return request({
        headers: {
            // "Content-Type": "application/x-www-form-urlencoded"
            "Content-Type": "application/json"
        },
        url: '/forum/category/add',
        method: 'post',
        data: data
    });
};
export function sectiondelete(id) {
    return request({
        url: '/forum/category/deleted',
        method: 'post',
        params: id
    })
};
